﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace BBMS.DLL.DataContract
{
    /*
    public class ChungTuThu : ChungTuBase
    {
        public ChungTuThu()
        {
        }
        public ChungTuThu(long id, string maCT, string soCT, string loaiCT, DateTime ngayCT, 
            string maNCC, string maQuay, long giatri, long giatridaTT, 
            string maHoSo,string ghiChu,
            string chungTuGoc, bool coHoaDon,
            TrangThaiThanhToan trangThaiTT, int nvid) : base (id,loaiCT,maCT,soCT,ngayCT,ngayCT,
            ngayCT,ngayCT,trangThaiTT,maHoSo,maNCC,maQuay,"",giatri,0,giatri,0,0,giatri,giatridaTT,chungTuGoc,coHoaDon,false,ghiChu,nvid)
        {
        }


        public override System.Data.DataTable GetObjectDataTable()
        {
            return null;
        }
       
        public override string ExWhereClause
        {
            get
            {
                return exWhere;
            }
        }
        private string exWhere = " LoaiCT = 'CTCK' OR LoaiCT = 'CKTM' ";
        public void SetExWhereClause(string str)
        {
            exWhere = str;
        }

        public override BBMS.DLL.Base.ObjectBase DataReaderToObject(MySql.Data.MySqlClient.MySqlDataReader row)
        {
            ChungTuThu obj = null;
            try
            {
                obj = new ChungTuThu(CommonTools.Helper.StringToLong(row["ID"].ToString()),
                    row["MaCT"].ToString(),
                    row["SoCT"].ToString(),
                    row["LoaiCT"].ToString(),
                    (DateTime)row["NgayCT"],
                    row["MaNCC"].ToString(),
                    row["MaQuay"].ToString(),
                    CommonTools.Helper.StringToLong(row["GiaTriCT"].ToString()),
                    CommonTools.Helper.StringToLong(row["GiaTriDaTT"].ToString()),
                    row["MaHoSo"].ToString(),
                    row["GhiChu"].ToString(),
                    row["ChungTuGoc"].ToString(),
                    (row["CoHoaDon"].ToString() == "True"),
                    (TrangThaiThanhToan)(CommonTools.Helper.StringToInt(row["TrangThaiTT"].ToString())),
                    CommonTools.Helper.StringToInt(row["NVID"].ToString()));
            }
            catch { }
            return obj;
        }
    }*/
    
}
